package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <desc>
 *      工程人员与项目关联信息表
 * </desc>
 *
 * @createDate2021/1/31
 **/
@ItlTables("operate_engineer_project")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class OperateEngineerProjectPO extends BasePO implements Serializable {

    @ItlField("user_id")
    private String userId;          //用户id
    @ItlField("project_id")
    private String projectId;       //项目id

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ItlField("auth_start_time")
    private String authStartTime;   //授权开始时间

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ItlField("auth_end_time")
    private String authEndTime;     //授权结束时间
}
